/**
 * Beijing Jiaotong University
 * Copyright (c) 1896-2016 All Rights Reserved.
 */
package org.hh.ws.invoker.client.impl;

import javax.annotation.Resource;

import org.hh.ws.invoker.client.DepartmentFacadeClient;
import org.myws.dao.mybatis.domain.Department;
import org.myws.facade.DepartmentFacade;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSON;

/**
 * 
 * @author HuHui
 * @version $Id: DepartmentFacadeClientImpl.java, v 0.1 2016年5月8日 下午4:55:28 HuHui Exp $
 */
@Component
public class DepartmentFacadeClientImpl implements DepartmentFacadeClient {

    private static final Logger log = LoggerFactory.getLogger(DepartmentFacadeClientImpl.class);

    @Resource
    private DepartmentFacade    departmentFacade;

    @Override
    public Department getById(Long id) {
        Department dept = departmentFacade.getById(id);
        log.info("查询结果department:{}", JSON.toJSONString(dept));
        return dept;
    }

}
